package arrayCollectionDemo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;

public class Demo {
	public static void main(String args[]){
		String[] str = {"aaa","bbb","ccc"};
		//不能进行除只读以外的任何操作
		List list = Arrays.asList(str);
		System.out.println(list);
		//list.add("kk");
		//System.out.println(list);
		
		//把list变成真正的List
		list = new ArrayList(list);
		list.add("kk");
		System.out.println(list);
		
		//把list转成hashset
		HashSet set1 = new HashSet(list);
		set1.add("xxoo");
		System.out.println(set1);
		
		
		
		
		
		
		
		
		
	}
}
